﻿using AbpApplication.AppServices;
using AbpApplication.InPut;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace AbpWebapi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class EssServiceController : ControllerBase
    {

        private readonly IEssService _esService;

        public EssServiceController(IEssService esService)
        {
            _esService = esService;
        }

        [HttpPost]
        public async Task<ApiResponse> TaskStatusChange(InPut_EssService InPut) => await _esService.TaskStatusChange(InPut);
        [HttpPost]
        public async Task<ApiResponse> AbnormalCapture(InPut_EssService2 InPut)=>await _esService.AbnormalCapture(InPut);
    }
}
